<{include file="public/header" title='我的考试历史-'/}>
<style>
  html, body {width: 100%;height: 100%; margin: 0;  padding: 0; background-color:  #F2F2F2;}
  .layui-layout-admin .layui-header {background-color: #2F4056;}
</style>
<body class="">
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo">siku在线考试系统</div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <!-- <ul class="layui-nav layui-layout-left">
      <li class="layui-nav-item">
        <a href="javascript:;">控制台</a>
        <dl class="layui-nav-child">
          <dd><a href="">邮件管理</a></dd>
          <dd><a href="">消息管理</a></dd>
          <dd><a href="">授权管理</a></dd>
        </dl>
      </li>
    </ul> -->
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item" style="margin-right: 20px;">
        <a href="javascript:;">
          <img src="__ROOT__/public/static/img/001.jpg" class="layui-nav-img">
          <{$Think.session.username}>
        </a>
        <dl class="layui-nav-child">
          <dd><a href="javascript:;" id="info">基本资料</a></dd>
          <dd><a href="javascript:;" id="stupass">修改密码</a></dd>
          <dd><a href="<{:url('history')}>" id="history">考试历史</a></dd>
          <dd><a href="<{:url('index/login/out_login')}>">退出</a></dd>
        </dl>
      </li>

    </ul>
  </div>
  <div class="layui-container" >
      <div style="height: 50px;line-height: 46px;padding: 2px 0;">
        <span class="layui-breadcrumb">
          <a href="<{:url('index')}>">首页</a>
          <a><cite>考试历史</cite></a>
        </span>
        
      </div>
      <div class="layui-row">
            <div class="layui-col-md12">
            <!-- <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
              <legend>我的选课记录</legend>
            </fieldset> -->
                <ul class="layui-timeline">
                <!-- <li class="layui-timeline-item">
                    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
                    <div class="layui-timeline-content layui-text">
                        <h3 class="layui-timeline-title">置顶的说明文档</h3>
                        <h3>#联系：</h3>
                        <ul>
                            <li>Email:hxb0810@163.com</li>
                            <li>如需要联系，可发邮件到上述邮箱
                            </li>
                        </ul>
                        <h3>#鸣谢：</h3>
                        <ul>
                            <li><a href="http://www.thinkphp.cn/">ThinkPHP</a>  &nbsp; &nbsp;<a href="http://www.layui.com/">LayUI(贤心)</a></li>
                            <li><a href="index.1.html" target="_blank">点击查看一级菜单的加载</a></li>
                        </ul>
                    </div>
                </li> -->
                <{volist name="elist" id="vo" empty="还没参加任何考试"}>
                <li class="layui-timeline-item">
                    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
                    <div class="layui-timeline-content layui-text">
                        <h6 class="layui-timeline-title"><{$vo.getexams.begintime|date="Y-m-d H:i:s",###}><br>
                          <a href="<{:url('myexam')}>?id=<{$vo.id}>"><{$vo.getexams.title}>
                          <span style="color: #009688;">总分为：<{$vo.total}></span ></a>
                        <span class="layui-badge layui-bg-blue"><{$vo.getexams.subject|get_question_subject}></span>
                        
                        
                        
                        
                        
                    </div>
                </li>
                <{/volist}>
                
                
                </ul>
            </div>
        </div>
        
  </div>
  
  <div style="height: 50px;"></div>
  <div class="layui-footer" style="margin-left: -200px;">
            <!-- 底部固定区域 -->
            &copy; 2020 |&nbsp;<img src="" alt=""> <{$Think.config.app_name}> | <{$Think.config.site_name}> | Design by <a href="javascript:;" id="me"> hxb0810</a>

  </div>





</div>
</body>
  
 




<script>
//JavaScript代码区域
layui.use(['element','jquery','layer'], function(){
  var element = layui.element,$ = layui.$,layer=layui.layer;
  
  // $(".layui-card").click(function(){
  //     var eid=$(this).attr('eid');
      
  //     //alert(eid);
  //     $.post("<{:url('check_paper')}>",{eid:eid},function(data,status){
  //          // layer.alert(data);
  //           //layer.alert(JSON.stringify(data));
  //           //console(data);
  //           if(data===1){
  //             location.href="<{:url('index/paper')}>"+'?eid='+eid;
  //           }else{
  //             layer.alert(data,{icon:5});
  //           }
  //      })
  // });
  $('#info').on('click',function(){
                  layer.alert("姓名：<{$Think.session.username}><br>班级：<{$Think.session.class}>班<br>年级：<{$Think.session.grade|check_grade}><br>", {
                    skin: 'layui-layer-lan'
                    ,title:'我的信息'
                    ,closeBtn: 0
                    ,anim: 4 //动画类型
                  });
  });
  $('#stupass').on('click',function(){
               var index= layer.open({
                  title:'修改密码'
                  ,type: 2
                  //offset: '50px'
                  //,area: ['800px', '400px']
                  ,content: '<{:url('pass')}> ' 
                }); layer.full(index);
            
  });
  
});
</script>
</body>
</html>